package edu.colorado.epmapp.models;

import edu.colorado.epmapp.form.PetForm;


public class User {
	
	private String password;
	private String username;
	
	private PetForm petForm;
	
	private static User instance = null;
	
	protected User(){
		super();
	}
	
	/**
	 * Using singleton pattern since we only want one user at a time
	 * to be logged into the application
	 * 
	 */
	public static User getUser(){
		if(instance == null){
			instance = new User();
		}
		
		return instance;
	}
	
	/**
	 * @return the current pet form
	 */
	public PetForm getPetForm(){
		return petForm;
	}
	
	/**
	 * @param new pet form to create
	 */
	public void setPetForm(PetForm newForm){
		this.petForm = newForm;
	}
	
	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	
}
